package cn.tx.stringbuilder;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/10/16 22:40
 */
public class AppendAndReverse {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        sb.append("hello");
        sb.append("jubo");
        System.out.println("sb对象: " + sb);
        //链式编程
        sb.append("lianshi").append("bian").append("chneng");
        System.out.println("链式编程对象：" + sb);

        System.out.println("-------------反转对象-----------");
        sb.reverse();
        System.out.println("反转后的sb对象: " + sb);
    }
}
